package common.fengkai.filepost.bean.pgbean;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class WatermarkPrinterLockExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WatermarkPrinterLockExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdPrinterLockIsNull() {
            addCriterion("id_printer_lock is null");
            return (Criteria) this;
        }

        public Criteria andIdPrinterLockIsNotNull() {
            addCriterion("id_printer_lock is not null");
            return (Criteria) this;
        }

        public Criteria andIdPrinterLockEqualTo(String value) {
            addCriterion("id_printer_lock =", value, "idPrinterLock");
            return (Criteria) this;
        }

        public Criteria andIdPrinterLockNotEqualTo(String value) {
            addCriterion("id_printer_lock <>", value, "idPrinterLock");
            return (Criteria) this;
        }

        public Criteria andIdPrinterLockGreaterThan(String value) {
            addCriterion("id_printer_lock >", value, "idPrinterLock");
            return (Criteria) this;
        }

        public Criteria andIdPrinterLockGreaterThanOrEqualTo(String value) {
            addCriterion("id_printer_lock >=", value, "idPrinterLock");
            return (Criteria) this;
        }

        public Criteria andIdPrinterLockLessThan(String value) {
            addCriterion("id_printer_lock <", value, "idPrinterLock");
            return (Criteria) this;
        }

        public Criteria andIdPrinterLockLessThanOrEqualTo(String value) {
            addCriterion("id_printer_lock <=", value, "idPrinterLock");
            return (Criteria) this;
        }

        public Criteria andIdPrinterLockLike(String value) {
            addCriterion("id_printer_lock like", value, "idPrinterLock");
            return (Criteria) this;
        }

        public Criteria andIdPrinterLockNotLike(String value) {
            addCriterion("id_printer_lock not like", value, "idPrinterLock");
            return (Criteria) this;
        }

        public Criteria andIdPrinterLockIn(List<String> values) {
            addCriterion("id_printer_lock in", values, "idPrinterLock");
            return (Criteria) this;
        }

        public Criteria andIdPrinterLockNotIn(List<String> values) {
            addCriterion("id_printer_lock not in", values, "idPrinterLock");
            return (Criteria) this;
        }

        public Criteria andIdPrinterLockBetween(String value1, String value2) {
            addCriterion("id_printer_lock between", value1, value2, "idPrinterLock");
            return (Criteria) this;
        }

        public Criteria andIdPrinterLockNotBetween(String value1, String value2) {
            addCriterion("id_printer_lock not between", value1, value2, "idPrinterLock");
            return (Criteria) this;
        }

        public Criteria andPrinterIpIsNull() {
            addCriterion("printer_ip is null");
            return (Criteria) this;
        }

        public Criteria andPrinterIpIsNotNull() {
            addCriterion("printer_ip is not null");
            return (Criteria) this;
        }

        public Criteria andPrinterIpEqualTo(String value) {
            addCriterion("printer_ip =", value, "printerIp");
            return (Criteria) this;
        }

        public Criteria andPrinterIpNotEqualTo(String value) {
            addCriterion("printer_ip <>", value, "printerIp");
            return (Criteria) this;
        }

        public Criteria andPrinterIpGreaterThan(String value) {
            addCriterion("printer_ip >", value, "printerIp");
            return (Criteria) this;
        }

        public Criteria andPrinterIpGreaterThanOrEqualTo(String value) {
            addCriterion("printer_ip >=", value, "printerIp");
            return (Criteria) this;
        }

        public Criteria andPrinterIpLessThan(String value) {
            addCriterion("printer_ip <", value, "printerIp");
            return (Criteria) this;
        }

        public Criteria andPrinterIpLessThanOrEqualTo(String value) {
            addCriterion("printer_ip <=", value, "printerIp");
            return (Criteria) this;
        }

        public Criteria andPrinterIpLike(String value) {
            addCriterion("printer_ip like", value, "printerIp");
            return (Criteria) this;
        }

        public Criteria andPrinterIpNotLike(String value) {
            addCriterion("printer_ip not like", value, "printerIp");
            return (Criteria) this;
        }

        public Criteria andPrinterIpIn(List<String> values) {
            addCriterion("printer_ip in", values, "printerIp");
            return (Criteria) this;
        }

        public Criteria andPrinterIpNotIn(List<String> values) {
            addCriterion("printer_ip not in", values, "printerIp");
            return (Criteria) this;
        }

        public Criteria andPrinterIpBetween(String value1, String value2) {
            addCriterion("printer_ip between", value1, value2, "printerIp");
            return (Criteria) this;
        }

        public Criteria andPrinterIpNotBetween(String value1, String value2) {
            addCriterion("printer_ip not between", value1, value2, "printerIp");
            return (Criteria) this;
        }

        public Criteria andIdTaskLockIsNull() {
            addCriterion("id_task_lock is null");
            return (Criteria) this;
        }

        public Criteria andIdTaskLockIsNotNull() {
            addCriterion("id_task_lock is not null");
            return (Criteria) this;
        }

        public Criteria andIdTaskLockEqualTo(String value) {
            addCriterion("id_task_lock =", value, "idTaskLock");
            return (Criteria) this;
        }

        public Criteria andIdTaskLockNotEqualTo(String value) {
            addCriterion("id_task_lock <>", value, "idTaskLock");
            return (Criteria) this;
        }

        public Criteria andIdTaskLockGreaterThan(String value) {
            addCriterion("id_task_lock >", value, "idTaskLock");
            return (Criteria) this;
        }

        public Criteria andIdTaskLockGreaterThanOrEqualTo(String value) {
            addCriterion("id_task_lock >=", value, "idTaskLock");
            return (Criteria) this;
        }

        public Criteria andIdTaskLockLessThan(String value) {
            addCriterion("id_task_lock <", value, "idTaskLock");
            return (Criteria) this;
        }

        public Criteria andIdTaskLockLessThanOrEqualTo(String value) {
            addCriterion("id_task_lock <=", value, "idTaskLock");
            return (Criteria) this;
        }

        public Criteria andIdTaskLockLike(String value) {
            addCriterion("id_task_lock like", value, "idTaskLock");
            return (Criteria) this;
        }

        public Criteria andIdTaskLockNotLike(String value) {
            addCriterion("id_task_lock not like", value, "idTaskLock");
            return (Criteria) this;
        }

        public Criteria andIdTaskLockIn(List<String> values) {
            addCriterion("id_task_lock in", values, "idTaskLock");
            return (Criteria) this;
        }

        public Criteria andIdTaskLockNotIn(List<String> values) {
            addCriterion("id_task_lock not in", values, "idTaskLock");
            return (Criteria) this;
        }

        public Criteria andIdTaskLockBetween(String value1, String value2) {
            addCriterion("id_task_lock between", value1, value2, "idTaskLock");
            return (Criteria) this;
        }

        public Criteria andIdTaskLockNotBetween(String value1, String value2) {
            addCriterion("id_task_lock not between", value1, value2, "idTaskLock");
            return (Criteria) this;
        }

        public Criteria andDateLockIsNull() {
            addCriterion("date_lock is null");
            return (Criteria) this;
        }

        public Criteria andDateLockIsNotNull() {
            addCriterion("date_lock is not null");
            return (Criteria) this;
        }

        public Criteria andDateLockEqualTo(Date value) {
            addCriterion("date_lock =", value, "dateLock");
            return (Criteria) this;
        }

        public Criteria andDateLockNotEqualTo(Date value) {
            addCriterion("date_lock <>", value, "dateLock");
            return (Criteria) this;
        }

        public Criteria andDateLockGreaterThan(Date value) {
            addCriterion("date_lock >", value, "dateLock");
            return (Criteria) this;
        }

        public Criteria andDateLockGreaterThanOrEqualTo(Date value) {
            addCriterion("date_lock >=", value, "dateLock");
            return (Criteria) this;
        }

        public Criteria andDateLockLessThan(Date value) {
            addCriterion("date_lock <", value, "dateLock");
            return (Criteria) this;
        }

        public Criteria andDateLockLessThanOrEqualTo(Date value) {
            addCriterion("date_lock <=", value, "dateLock");
            return (Criteria) this;
        }

        public Criteria andDateLockIn(List<Date> values) {
            addCriterion("date_lock in", values, "dateLock");
            return (Criteria) this;
        }

        public Criteria andDateLockNotIn(List<Date> values) {
            addCriterion("date_lock not in", values, "dateLock");
            return (Criteria) this;
        }

        public Criteria andDateLockBetween(Date value1, Date value2) {
            addCriterion("date_lock between", value1, value2, "dateLock");
            return (Criteria) this;
        }

        public Criteria andDateLockNotBetween(Date value1, Date value2) {
            addCriterion("date_lock not between", value1, value2, "dateLock");
            return (Criteria) this;
        }

        public Criteria andDateTaskStartIsNull() {
            addCriterion("date_task_start is null");
            return (Criteria) this;
        }

        public Criteria andDateTaskStartIsNotNull() {
            addCriterion("date_task_start is not null");
            return (Criteria) this;
        }

        public Criteria andDateTaskStartEqualTo(Date value) {
            addCriterion("date_task_start =", value, "dateTaskStart");
            return (Criteria) this;
        }

        public Criteria andDateTaskStartNotEqualTo(Date value) {
            addCriterion("date_task_start <>", value, "dateTaskStart");
            return (Criteria) this;
        }

        public Criteria andDateTaskStartGreaterThan(Date value) {
            addCriterion("date_task_start >", value, "dateTaskStart");
            return (Criteria) this;
        }

        public Criteria andDateTaskStartGreaterThanOrEqualTo(Date value) {
            addCriterion("date_task_start >=", value, "dateTaskStart");
            return (Criteria) this;
        }

        public Criteria andDateTaskStartLessThan(Date value) {
            addCriterion("date_task_start <", value, "dateTaskStart");
            return (Criteria) this;
        }

        public Criteria andDateTaskStartLessThanOrEqualTo(Date value) {
            addCriterion("date_task_start <=", value, "dateTaskStart");
            return (Criteria) this;
        }

        public Criteria andDateTaskStartIn(List<Date> values) {
            addCriterion("date_task_start in", values, "dateTaskStart");
            return (Criteria) this;
        }

        public Criteria andDateTaskStartNotIn(List<Date> values) {
            addCriterion("date_task_start not in", values, "dateTaskStart");
            return (Criteria) this;
        }

        public Criteria andDateTaskStartBetween(Date value1, Date value2) {
            addCriterion("date_task_start between", value1, value2, "dateTaskStart");
            return (Criteria) this;
        }

        public Criteria andDateTaskStartNotBetween(Date value1, Date value2) {
            addCriterion("date_task_start not between", value1, value2, "dateTaskStart");
            return (Criteria) this;
        }

        public Criteria andCreatedByIsNull() {
            addCriterion("created_by is null");
            return (Criteria) this;
        }

        public Criteria andCreatedByIsNotNull() {
            addCriterion("created_by is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedByEqualTo(String value) {
            addCriterion("created_by =", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotEqualTo(String value) {
            addCriterion("created_by <>", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByGreaterThan(String value) {
            addCriterion("created_by >", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByGreaterThanOrEqualTo(String value) {
            addCriterion("created_by >=", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByLessThan(String value) {
            addCriterion("created_by <", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByLessThanOrEqualTo(String value) {
            addCriterion("created_by <=", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByLike(String value) {
            addCriterion("created_by like", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotLike(String value) {
            addCriterion("created_by not like", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByIn(List<String> values) {
            addCriterion("created_by in", values, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotIn(List<String> values) {
            addCriterion("created_by not in", values, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByBetween(String value1, String value2) {
            addCriterion("created_by between", value1, value2, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotBetween(String value1, String value2) {
            addCriterion("created_by not between", value1, value2, "createdBy");
            return (Criteria) this;
        }

        public Criteria andDateCreatedIsNull() {
            addCriterion("date_created is null");
            return (Criteria) this;
        }

        public Criteria andDateCreatedIsNotNull() {
            addCriterion("date_created is not null");
            return (Criteria) this;
        }

        public Criteria andDateCreatedEqualTo(Date value) {
            addCriterion("date_created =", value, "dateCreated");
            return (Criteria) this;
        }

        public Criteria andDateCreatedNotEqualTo(Date value) {
            addCriterion("date_created <>", value, "dateCreated");
            return (Criteria) this;
        }

        public Criteria andDateCreatedGreaterThan(Date value) {
            addCriterion("date_created >", value, "dateCreated");
            return (Criteria) this;
        }

        public Criteria andDateCreatedGreaterThanOrEqualTo(Date value) {
            addCriterion("date_created >=", value, "dateCreated");
            return (Criteria) this;
        }

        public Criteria andDateCreatedLessThan(Date value) {
            addCriterion("date_created <", value, "dateCreated");
            return (Criteria) this;
        }

        public Criteria andDateCreatedLessThanOrEqualTo(Date value) {
            addCriterion("date_created <=", value, "dateCreated");
            return (Criteria) this;
        }

        public Criteria andDateCreatedIn(List<Date> values) {
            addCriterion("date_created in", values, "dateCreated");
            return (Criteria) this;
        }

        public Criteria andDateCreatedNotIn(List<Date> values) {
            addCriterion("date_created not in", values, "dateCreated");
            return (Criteria) this;
        }

        public Criteria andDateCreatedBetween(Date value1, Date value2) {
            addCriterion("date_created between", value1, value2, "dateCreated");
            return (Criteria) this;
        }

        public Criteria andDateCreatedNotBetween(Date value1, Date value2) {
            addCriterion("date_created not between", value1, value2, "dateCreated");
            return (Criteria) this;
        }

        public Criteria andUpdatedByIsNull() {
            addCriterion("updated_by is null");
            return (Criteria) this;
        }

        public Criteria andUpdatedByIsNotNull() {
            addCriterion("updated_by is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatedByEqualTo(String value) {
            addCriterion("updated_by =", value, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedByNotEqualTo(String value) {
            addCriterion("updated_by <>", value, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedByGreaterThan(String value) {
            addCriterion("updated_by >", value, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedByGreaterThanOrEqualTo(String value) {
            addCriterion("updated_by >=", value, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedByLessThan(String value) {
            addCriterion("updated_by <", value, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedByLessThanOrEqualTo(String value) {
            addCriterion("updated_by <=", value, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedByLike(String value) {
            addCriterion("updated_by like", value, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedByNotLike(String value) {
            addCriterion("updated_by not like", value, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedByIn(List<String> values) {
            addCriterion("updated_by in", values, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedByNotIn(List<String> values) {
            addCriterion("updated_by not in", values, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedByBetween(String value1, String value2) {
            addCriterion("updated_by between", value1, value2, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedByNotBetween(String value1, String value2) {
            addCriterion("updated_by not between", value1, value2, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andDateUpdatedIsNull() {
            addCriterion("date_updated is null");
            return (Criteria) this;
        }

        public Criteria andDateUpdatedIsNotNull() {
            addCriterion("date_updated is not null");
            return (Criteria) this;
        }

        public Criteria andDateUpdatedEqualTo(Date value) {
            addCriterion("date_updated =", value, "dateUpdated");
            return (Criteria) this;
        }

        public Criteria andDateUpdatedNotEqualTo(Date value) {
            addCriterion("date_updated <>", value, "dateUpdated");
            return (Criteria) this;
        }

        public Criteria andDateUpdatedGreaterThan(Date value) {
            addCriterion("date_updated >", value, "dateUpdated");
            return (Criteria) this;
        }

        public Criteria andDateUpdatedGreaterThanOrEqualTo(Date value) {
            addCriterion("date_updated >=", value, "dateUpdated");
            return (Criteria) this;
        }

        public Criteria andDateUpdatedLessThan(Date value) {
            addCriterion("date_updated <", value, "dateUpdated");
            return (Criteria) this;
        }

        public Criteria andDateUpdatedLessThanOrEqualTo(Date value) {
            addCriterion("date_updated <=", value, "dateUpdated");
            return (Criteria) this;
        }

        public Criteria andDateUpdatedIn(List<Date> values) {
            addCriterion("date_updated in", values, "dateUpdated");
            return (Criteria) this;
        }

        public Criteria andDateUpdatedNotIn(List<Date> values) {
            addCriterion("date_updated not in", values, "dateUpdated");
            return (Criteria) this;
        }

        public Criteria andDateUpdatedBetween(Date value1, Date value2) {
            addCriterion("date_updated between", value1, value2, "dateUpdated");
            return (Criteria) this;
        }

        public Criteria andDateUpdatedNotBetween(Date value1, Date value2) {
            addCriterion("date_updated not between", value1, value2, "dateUpdated");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}